package priv.mill.guolvqi;

import java.util.ArrayList;
import java.util.List;


public class Main {


	public static void main(String[] args) {
		List<Person> persons=new ArrayList<Person>();
		
		
		persons.add(new Person("张桂花", 33, '女'));
		persons.add(new Person("张富贵", 43, '男'));
		persons.add(new Person("张学友", 56, '男'));
		persons.add(new Person("张国荣", 56, '男'));
		persons.add(new Person("张春华", 6, '女'));
		persons.add(new Person("张爱红", 13, '女'));
		persons.add(new Person("张春生", 22, '男'));
		persons.add(new Person("张二狗", 44, '男'));
		persons.add(new Person("张爱兰", 43, '女'));
		
		List<Person> doFilter = new GirlFilter().doFilter(persons);
		 doFilter = new YoungFilter().doFilter(doFilter);
		 doFilter = new NameFilter().doFilter(doFilter);
		 System.out.println(doFilter);
		
		
	}
}
